package com.ruoyi.common.yh.api.dtovo.comm;

/**
 * @ClassName LoginDTO
 * @Deacription TODO
 * @Author Administrator
 * @Date 2021/3/23 16:58
 * @Version 1.0
 **/

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@ApiModel("登录参数")
public class LoginDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 电话号码 */
    @ApiModelProperty(value = "电话号码", name = "phone",required = true)
    @NotEmpty
    private String phone;
    @ApiModelProperty(value = "小程序端必传参数", name = "openIdtoken",required = true)
    private String openIdtoken;
    /** 验证码 */
    @ApiModelProperty(value = "验证码", name = "code",required = true)
    @Pattern(regexp = "^\\d{6}$",message = "请输入六位验证码")
    @NotEmpty
    private String code;
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOpenIdtoken() {
        return openIdtoken;
    }

    public void setOpenIdtoken(String openIdtoken) {
        this.openIdtoken = openIdtoken;
    }
}

